﻿
namespace DWLib
{
    /// <summary>
    /// Describes an object whoms value(s) can be changed.
    /// </summary>
    public interface IOperable
    {
        /// <summary>
        /// Increment the value.
        /// </summary>
        /// <returns>true when the cycle goes back to zero; false otherwise.</returns>
        bool increment();

        /// <summary>
        /// Decrement the value.
        /// </summary>
        /// <returns>true when the cycle goes back to the maximum; false otherwise.</returns>
        bool decrement();
    }
}
